<%--@elvariable id="contractorId" type="java.lang.String"--%>
<%--@elvariable id="checkProblem" type="com.weitu.securitycheck.entity.CheckProblem"--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" pageEncoding="utf-8" %>
<%@taglib prefix="accessory" uri="http://accessoryPackageTag.weitu.net" %>
<!doctype html>
<html lang="zh">
<head>
    <title>问题登记</title>
    <%@include file="/common/header.jspf" %>
    <script type="text/javascript" src="${ctx}/resources/js/securityCheck/checkProblem/edit.js"></script>
</head>
<body>
<form id="form1" method="POST">
    <div class="information">
        <div class="information-title">
            <p>基本信息</p>
            <a class="panel-down" href="javascript:void(0)">
                <span style="color: #49A9F9" class="fa fa-chevron-down fa-lg"></span>
            </a>
        </div>
        <div class="cuttle">
            <div>
                <div class="form_one">
                    <label class="lable-style">检查承包商:</label>
                    <select id="isCheckContractor" name="isCheckContractor" class="easyui-combobox"
                            data-options="required:true,editable:false,readonly:true"
                            style="width:240px;">
                        <option <c:if test="${checkProblem.isCheckContractor == 1}">selected</c:if> value="1">是</option>
                        <option <c:if test="${checkProblem.isCheckContractor == 0}">selected</c:if> value="0">否</option>
                    </select>
                </div>
                <div class="form_one contractor">
                    <label class="lable-style">被检承包商:</label>
                    <input id="contractorAuditName" value="${checkProblem.contractorAuditName}" readonly name="contractorAuditName" class="easyui-textbox" type="text" style="width:240px;">
                    <input id="contractorAuditId" value="${checkProblem.contractorAuditId}" readonly name="contractorAuditId" type="hidden" class="hide">
                </div>
                <div class="form_one department hide">
                    <label class="lable-style">被检部门:</label>
                    <input id="receiveDeptIds" value="${checkProblem.receiveDeptIds}" readonly name="receiveDeptIds" class="easyui-textbox" disabled type="text" style="width:240px;">
                </div>
                <div class="form_one">
                    <label class="lable-style">检查日期:</label>
                    <input id="checkDate" value="${checkProblem.checkDate}" readonly name="checkDate" class="easyui-datebox" data-options="required:true" type="text" style="width:240px;">
                </div>
            </div>
            <div class="contractor" style="clear: both">
                <div class="form_one">
                    <label class="lable-style">项目名称:</label>
                    <input id="projectName" value="${checkProblem.projectName}" readonly name="projectName" class="easyui-textbox" type="text" style="width:240px;">
                    <input id="projectId" value="${checkProblem.projectId}" readonly name="projectId" type="hidden" class="hide">
                </div>
                <div class="form_one">
                    <label class="lable-style">承包商违章人员:</label>
                    <input id="violatedStaffNames" value="${checkProblem.violatedStaffNames}" readonly name="violatedStaffNames" class="easyui-textbox" type="text" style="width:240px;">
                    <input id="violatedStaffIds" value="${checkProblem.violatedStaffIds}" readonly name="violatedStaffIds" type="hidden" class="hide">
                </div>
                <div class="form_one">
                    <label class="lable-style">承包商整改责任人:</label>
                    <input id="rectifyResponsibleNames" value="${checkProblem.rectifyResponsibleNames}" readonly name="rectifyResponsibleNames" class="easyui-textbox" type="text" style="width:240px;">
                    <input id="rectifyResponsibleIds" value="${checkProblem.rectifyResponsibleIds}" readonly name="rectifyResponsibleIds" type="hidden" class="hide">
                </div>
            </div>
            <div style="clear: both">
                <div class="form_one" style="width: 720px;">
                    <label class="lable-style">被检区域:</label>
                    <input id="riskRegionName" value="${checkProblem.riskRegionName}" readonly name="riskRegionName" class="easyui-textbox" type="text" style="width: 600px;"/>
                    <input id="riskRegionId" value="${checkProblem.riskRegionId}" readonly name="riskRegionId" type="hidden" class="hide">
                </div>
                <div class="form_one">
                    <label class="lable-style">风险点:</label>
                    <input id="riskPointId" value="${checkProblem.riskPointId}" readonly name="riskPointId" class="easyui-textbox" type="text" style="width:240px;">
                </div>
            </div>
            <div style="clear: both">
                <div class="form_one">
                    <label class="lable-style">是否计入问题总数:</label>
                    <select id="isProblem" name="isProblem" class="easyui-combobox"
                            data-options="required:true,editable:false,readonly:true"
                            style="width:240px;">
                        <option <c:if test="${checkProblem.isProblem == 1}">selected</c:if> value="1">是</option>
                        <option <c:if test="${checkProblem.isProblem == 0}">selected</c:if> value="0">否</option>
                    </select>
                </div>
            </div>
            <div style="clear: both">
                <div class="form_one" style="width: 1100px;height: 100px">
                    <label class="lable-style">问题描述:</label>
                    <input id="remarks" value="${checkProblem.remarks}" readonly name="remarks" class="easyui-textbox" data-options="required:true,multiline:true" type="text" style="height:90px;width: 959px;"/>
                </div>
            </div>
            <div style="clear: both">
                <div class="form_one">
                    <label class="lable-style">专业分类:</label>
                    <input id="specialtyTypeId" value="${checkProblem.specialtyTypeId}" readonly name="specialtyTypeId" class="easyui-combobox" type="text" style="width:240px;">
                </div>
                <div class="form_one">
                    <label class="lable-style">问题分类:</label>
                    <input id="problemTypeId" value="${checkProblem.problemTypeId}" readonly name="problemTypeId" class="easyui-combobox" type="text" style="width:240px;">
                </div>
            </div>
            <div style="clear: both">
                <div class="form_one">
                    <label class="lable-style">整改形式:</label>
                    <select id="rectifyType" name="rectifyType" class="easyui-combobox"
                            data-options="required:true,editable:false,readonly:true"
                            style="width:240px;">
                        <option <c:if test="${checkProblem.rectifyType == 1}">selected</c:if> value="1">立即整改</option>
                        <option <c:if test="${checkProblem.rectifyType == 0}">selected</c:if> value="0">流程整改</option>
                    </select>
                </div>
                <div class="form_one rectifyStaff">
                    <label class="lable-style">整改人:</label>
                    <input id="rectifyStaffNames" value="${checkProblem.rectifyStaffNames}" readonly name="rectifyStaffNames" class="easyui-textbox" type="text" style="width:240px;">
                    <input id="rectifyStaffIds" value="${checkProblem.rectifyStaffIds}" readonly name="rectifyStaffIds" type="hidden" class="hide">
                </div>
                <div class="form_one rectifyUser hide">
                    <label class="lable-style">整改人:</label>
                    <input id="rectifyUserName" value="${checkProblem.rectifyUserName}" readonly name="rectifyUserName" class="easyui-textbox" disabled type="text" style="width:240px;">
                    <input id="rectifyUserId" value="${checkProblem.rectifyUserId}" readonly name="rectifyUserId" type="hidden" disabled class="hide">
                </div>
            </div>
            <div style="clear: both">
                <div class="form_one" style="width: 1100px;height: 100px">
                    <label class="lable-style">整改描述:</label>
                    <input id="rectifyRemarks" value="${checkProblem.rectifyRemarks}" readonly name="rectifyRemarks" class="easyui-textbox" data-options="required:true,multiline:true" type="text" style="height:90px;width: 959px;"/>
                    <input type="hidden" class="hide" id="contractorId" readonly value="${contractorId}">
                    <input type="hidden" class="hide" name="id" readonly value="${param.id}">
                </div>
            </div>
        </div>
    </div>
    <div class="information work-task">
        <div class="information-title">
            <p>工作任务</p>
            <a class="panel-down" href="javascript:void(0)">
                <span style="color: #49A9F9" class="fa fa-chevron-down fa-lg"></span>
            </a>
        </div>
        <div class="enclosure">
            <table id="dg1"></table>
        </div>
    </div>
    <div class="information">
        <div class="information-title">
            <p>相关附件</p>
            <a class="panel-down" href="javascript:void(0)">
                <span style="color: #49A9F9" class="fa fa-chevron-down fa-lg"></span>
            </a>
        </div>
        <div class="cuttle">
            <div>
                <div class="form_two" style="width: 1100px;">
                    <%--@elvariable id="accessoryList" type="com.weitu.accessory.bean.AccessoryPackageInfo"--%>
                    <accessory:accessorySimple packageInfos="${accessoryList}" packageKey="check_problem" uploadUserId="${sessionScope.loginUser.id}" accessoryType="docx,doc,jpg,png,pdf,jpeg"/>
                </div>
            </div>
        </div>
    </div>
</form>
</body>
</html>
